import com.LCQ.crm.utils.SqlSessionUtil;
import com.LCQ.crm.workbench.dao.ActivityDao;
import com.LCQ.crm.workbench.domain.Activity;
import org.apache.ibatis.session.SqlSession;

public class test07 {
    public static void main(String[] args) {
        SqlSession session = SqlSessionUtil.getSqlSession();
        ActivityDao activityDao = SqlSessionUtil.getSqlSession().getMapper(ActivityDao.class);
        Activity activity = activityDao.getById("26a0fe0df9194489bce68b7dbe10f3f5");
        activity.setName("济南全运会");
        activityDao.update(activity);
        session.commit();
    }
}
